package com.qpx.jxcpay.task;


import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

//@Component
@Slf4j
public class OrderTask {

    /**
     * 处理调单
     */
    @Scheduled(cron = "0/10 * * * * ?")
    @Async
    public void order(){
        log.info("每隔10秒去数据库查询未支付并且支付方式为支付宝扫码支付的订单,调用支付宝查询接口,处理业务逻辑");
    }
}
